import http from '../http';

//列表数据
export const MeteringApi=()=>http({
    url:'/measure/selectAll',
    method:'post',
});

// 分页查询
export const PagingApi=(offset)=>http({
    url:'/measure/selectByPage',
    method:'post',
    params:{
        offset
    }
});
//是否启用
export const EnableApi=(id,isUsed)=>http({
    url:'/measure/updateIsUsed',
    method:'post',
    params:{
        id,isUsed
    }
})

//删除计量单位
export const  DelMeteringApi=(id)=>http({
    url:'/measure/delete',
    method:'post',
    params:{
        id
    }
});

//添加
export const  AddmeteringApi=(form)=>
http({
    url:'/measure/insert',
    method:'post',
    data:form
});